﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNet.Common.NHibernateUtil;
using ZLCMS.Data.Model;

namespace ZLCMS.Web.UC
{
    public partial class UC_PcProductTreeNav : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          
        }

     public string   GetSearchCategoryItemHtml()
        {
            string htmStr = "";
          using (NHibernate.ISession session = SessionFactoryHelper.CreateSession())
            {
                CmsModuleData data = session.CreateQuery("from CmsModuleData where Id='PcProductNav'").UniqueResult<CmsModuleData>();
                htmStr = data == null ? "" : data.Content; 
            }
          return htmStr;
        }
    }
}